/**
 * The sidebar view for the application. Used to display a list of books.
 * 
 * @extends Ext.view.View
 */
Ext.define('Gigi.view.MenuBar', {
			extend : 'Ext.tree.Panel',

			store : 'Menus',

			region : 'west',
			width : 150,
			rootVisible : false,
			hideHeaders : true,

			columns : [{
						xtype : 'treecolumn',
						dataIndex : 'name',
						sortable : true,
						flex : 1
					}],

			listeners : {
				itemclick : function(view, record) {
					var tab = view.up('viewport').down('grouptab');
					tab.initData(record.get('id'));
				}
			},

			initComponent : function() {
				Ext.apply(this, {

				});
				this.callParent(arguments);
			}
		});
